﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace GoDive.Contract
{
    public class tdestination
    {

        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public long ID { get; set; }

        /// <summary>
        /// 关联地理位置区域ID
        /// </summary>
        public long RegionID { get; set; }

        /// <summary>
        /// 父级目的地ID
        /// </summary>
        public long ParentID { get; set; }

        public bool IsHot { get; set; }

        public bool IsHome { get; set; }



        [ForeignKey("RegionID")]
        /// <summary>
        /// 区域信息
        /// </summary>
        public virtual tregion Region { get; set; }


        [NotMapped]
        /// <summary>
        /// 关联地理位置区域
        /// </summary>
        public string RegionName { get; set; }

        /// <summary>
        /// 目的地中文名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 目的地英文名
        /// </summary>
        public string EnName { get; set; }

        /// <summary>
        /// 目的地评分
        /// </summary>
        public decimal Score { get; set; }

        /// <summary>
        /// 最佳潜水季节
        /// </summary>
        public string BestSeason { get; set; }

        /// <summary>
        /// 目的地潜点类型
        /// </summary>
        public string DiveCategory { get; set; }

        /// <summary>
        /// 难度等级
        /// </summary>
        public string DifficultLevel { get; set; }

        /// <summary>
        /// 目的地经度坐标
        /// </summary>
        public decimal Lng { get; set; }

        /// <summary>
        /// 目的地纬度坐标
        /// </summary>
        public decimal Lat { get; set; }


        public int OrderIndex { get; set; }

        /// <summary>
        /// 潜点介绍，概况
        /// </summary>
        public string Summary { get; set; }
        public string Pic { get; set; }

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime DataChangeTime { get; set; }

        [NotMapped]
        public List<tdivesite> DiveSites { get; set; }

    }
}